package com.spica.platform.user.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spica.platform.base.model.SysRole;
import com.spica.platform.db.mapper.BaseMapper;
import com.spica.platform.user.model.request.SysRoleQueryParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {
	
	/***
	 * 分页查询角色列表
	 * @param page 分页信息
	 * @param sysRoleQueryParam 查询条件
	 * @return 角色对象
	 */
	List<SysRole> selectListByParam(Page<SysRole> page, @Param("sysRoleParam") SysRoleQueryParam sysRoleQueryParam);
}
